try:
    print(name)
    print(1/0)
except(NameError,ZeroDivisionError) as e:
    print("出现了变量未定义或者除以0的异常错误")